package com.yc.cloudvideo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author LYYT
 * @since 2022-08-03
 */
public class Store implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "cid", type = IdType.AUTO)
    private Long cid;

    private String cname;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @TableField(exist = false)
    User user;

    private LocalDateTime regTime;

    /**
     * 伪删除
     */
    private Boolean exist;

    /**
     * 是否公开
     */
    private Boolean overt;

    /**
     * 浏览次数
     */
    private Long scanCount;

    /**
     * 介绍
     */
    private String introduce;

    /**
     * 仓库路径
     */
    private String path;


    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public LocalDateTime getRegTime() {
        return regTime;
    }

    public void setRegTime(LocalDateTime regTime) {
        this.regTime = regTime;
    }

    public Boolean getExist() {
        return exist;
    }

    public void setExist(Boolean exist) {
        this.exist = exist;
    }

    public Boolean getOvert() {
        return overt;
    }

    public void setOvert(Boolean overt) {
        this.overt = overt;
    }

    public Long getScanCount() {
        return scanCount;
    }

    public void setScanCount(Long scanCount) {
        this.scanCount = scanCount;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    @Override
    public String toString() {
        return "Store{" +
                "cid=" + cid +
                ", cname=" + cname +
                ", regTime=" + regTime +
                ", exist=" + exist +
                ", overt=" + overt +
                ", scanCount=" + scanCount +
                ", introduce=" + introduce +
                ", path=" + path +
                "}";
    }
}
